Skip to content

Skip compiling mypyc/__main__.py#11862

Merged
hauntsaninja merged 2 commits into
python:masterfrom
mr-c:skip_compiling_mypyc_main
Dec 29, 2021
Merged

Skip compiling mypyc/__main__.py#11862
hauntsaninja merged 2 commits into
python:masterfrom
mr-c:skip_compiling_mypyc_main

Conversation

@mr-c

@mr-c mr-c commented Dec 29, 2021

Copy link
Copy Markdown
Contributor

Description

Skip compiling mypyc/__main__.py to fix mypyc/mypyc#912

Test Plan

With this patch, the tests testCompileMypyc and testErrorOutput pass during the building of the mypy 0.930 binary packages for Debian.

As for CI testing, in Debian we don't build via python3 setup.py --use-mypyc build_ext --inplace we use MYPY_USE_MYPYC=1 python3 setup.py build and then copy the results into a temporary directory, where we then run the tests.

Comment thread setup.py Outdated
@hauntsaninja

Copy link
Copy Markdown
Collaborator

Thanks, updated to add a comment
CI should catch this now, see #11865 (comment)

@hauntsaninja hauntsaninja merged commit fe3b625 into python:master Dec 29, 2021
@mr-c mr-c deleted the skip_compiling_mypyc_main branch December 29, 2021 19:11
JukkaL pushed a commit that referenced this pull request Jan 5, 2022
Fixes mypyc/mypyc#912

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
tushar-deepsource pushed a commit to DeepSourceCorp/mypy that referenced this pull request Jan 20, 2022
Fixes mypyc/mypyc#912

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

KeyError: '__file__'

2 participants